What is nested function in Python